package com.card.common;

public class MessageComm {
	// =====================玩家模块=====================================
	// 登录
	public static final int C2S_Login = 0x0101;
	public static final int S2C_Login = 0x1101;
	// 用户更新
	public static final int S2C_UserUpdate = 0x1404;
	//测试
	public static final int C2S_Test=0x1024;
	//透视
	public static final int S2C_TouShi=0x1025;
	
	// /**
	// *
	// */
	// public static final int S2C_RoomCreate = 0x1204;
	// 广播房间信息消息
	public static final int S2C_RoomInfo = 0x2204;
	// 同一错误提醒消息
	/**
	 * 服务器主动退出，统一的系统错误消息 参数：msg
	 */
	public static final int S2C_ErrorMsg = 0x1104;
	// 根据房间号加入房间消息
	/**
	 * roomId 房间id
	 */
	public static final int C2S_RoomJoin = 0x0103;
	public static final int S2C_RoomJoin = 0x1103;
	// 同一ip提示消息
	public static final int S2C_IpSame = 0x1105;
	// 随机筛子消息
	/**
	 * seed1 筛子1 seed2 筛子2 curwhosTurn-当前轮出牌
	 * 
	 */
	public static final int S2C_RandomSieve = 0x1107;
	public static final int S2C_SameUserLogin = 0x1109;
	// 邮件添加消息
		/**
		 * 添加邮件消息 参数：mail 新邮件的信息
		 */
		public static final int S2C_AddMail = 0x2203;
		// 参数 id
		public static final int C2S_RemoveMail = 0x2204;

		// 公告添加消息
		/**
		 * 公告添加消息 参数：notice 新的公告信息
		 */
		public static final int S2C_AddNotice = 0x2205;
		// 提交用户反馈消息
		/**
		 * 提交用户意见消息 参数：content 提交内容
		 */
		public static final int C2S_SubmitAdvice = 0x0206;
		/**
		 * 提交用户意见消息结果 result：1成功 其他失败
		 */
		public static final int S2C_SubmitAdvice = 0x1206;
		// 购买礼物消息
		public static final int C2S_GiftBuy = 0x0401;
		public static final int S2C_GiftBuy = 0x1401;
		// 礼物赠送
		/**
		 * 参数：fid 好友id gid 礼物id
		 */
		public static final int C2S_GiftGive = 0x0402;
		/**
		 * 参数：sendId 发送者 receiveId接受者 gift 礼物id
		 */
		public static final int S2C_GiftGive = 0x1402;
		// 聊天
		/**
		 * 聊天消息 type 聊天类型 0-string类型 1-语音类型 data type=0->string type=1->byte[] 数组
		 * 
		 */
		public static final int C2S_Chat = 0x0207;
		/**
		 * 聊天消息 name 说话人 type 聊天类型 0-string类型 1-语音类型 data type=0->string
		 * type=1->byte[] 数组
		 */
		public static final int S2C_Chat = 0x1208;

		public static final int C2S_Real_Auth = 0x0209;
		public static final int S2C_Real_Auth = 0x1209;

		
		/**
		 * 自定义掉线强制清除数据，待改！！！
		 */
		public static final int C2S_DiaoXianRoomDisband = 0x0413;
	// 开始游戏消息
		public static final int S2C_StartGame = 0x1102;
		// 创建房间
		/**
		 * type:1-水花 2-退刚刚 if(type == 1) { roomMode 0-下鱼2, 1-下鱼5, 2-下鱼8 playMode
		 * 0-4圈 1-8圈 2-2条 3-4条 nofeng 1是无风 0-有风 zimo 1-可以自摸 0-不可以自摸 }else { roomMode
		 * 0-下鱼2, 1-下鱼5, 2-下鱼8 betLimit 个人限组 10就是10 20就是20 -1代表不限制 heZhuang 和庄人id }
		 */
		public static final int C2S_RoomCreate = 0x0204;
		// 代开房间
		public static final int C2S_RoomAgentCreate = 0x0205;
		public static final int S2C_RoomAgentCreate = 0x1205;
		
		//添加S2C_Room_List,定义代开房间列表的接口
		public static final int C2S_Room_List = 0x0210;
		public static final int S2C_Room_List = 0x1210;
		
		//添加S2C_HistoryRoom_List，定义历史代开房间的列表的接口
		public static final int C2S_HistoryRoom_List = 0x0211;
		public static final int S2C_HistoryRoom_List = 0x1211;
		//进入工会,展示工会信息
		public static final int C2S_JoinGonghui = 0x0202;//进入工会界面
		public static final int S2C_ShowGonghuiInfo = 0x1203;//接收工会信息
		//进入工会游戏房间
		public static final int C2S_JoinGonghuiRoom = 0x0203;//
	// 出牌消息
	/**
	 * type:类型 index:
	 */
	public static final int C2S_HandOut = 0x0201;
	/**
	 * "userId", userId "outCard", outCard
	 */
	public static final int S2C_HandOut = 0x1201;
	// 检查玩家是否可以碰，对，胡消息
	public static final int S2C_CheckHandOut = 0x1202;

	// 提醒房间解散
	public static final int S2C_RoomRemindDisband = 0x1403;

	public static final int C2S_RoomDisband = 0x0301;
	public static final int S2C_RoomDisband = 0x1301;
	
	public static final int C2S_DisbandAgencyCreateRoom = 0x0308;
	public static final int S2C_DisbandAgencyCreateRoom = 0x1308;

	public static final int C2S_RoomDisbandRequest = 0x0302;
	public static final int S2C_RoomDisbandRequest = 0x1302;
	public static final int C2S_RoomDisbandReply = 0x0304;
	public static final int S2C_RoomDisbandReply = 0x1304;

	/**
	 * 参数：time long类型 代表客户端当前时间
	 */
	public static final int C2S_UserPing = 0x0303;
	public static final int S2C_UserPing = 0x1303;

	public static final int C2S_StartTgg = 0x0305;
	public static final int S2C_StartTgg = 0x1305;

	public static final int C2S_Ready = 0x0306;
	public static final int S2C_Ready = 0x1306;

	/**
	 * 参数：type:0 start:起 end:始 type:1
	 */
	public static final int C2S_Leaderboards = 0x0307;
	public static final int S2C_Leaderboards = 0x1307;

	// public static final int S2C_Skill = 0x1308;

	public static final int C2S_DoSkill = 0x0309;
	public static final int S2C_DoSkill = 0x1309;
	//麻将消息gpgp
	public static final int S2C_HunZi = 0x1321;
	
	public static final int S2C_FaPai = 0x1310;
	public static final int S2C_HandUpdate = 0x1311;

	public static final int S2C_PlayerEvent = 0x1312;
	public static final int S2C_TableHands = 0x1313;
	public static final int S2C_LastHandOut = 0x1314;

	public static final int S2C_SH_GAME_END = 0x1315;

	public static final int S2C_Player_Online_Change = 0x1316;

	public static final int C2S_Bet = 0x0317;
	public static final int S2C_Bet = 0x1317;

	public static final int S2C_HandUpdate2Out = 0x1318;

	public static final int S2C_SH_ALL_GAME_OVER = 0x1319;

	// 参数：fid 好友id
	public static final int C2S_FreindInfo = 0x0520;
	public static final int S2C_FreindInfo = 0x1520;
	
	
	public static final int S2C_FreindInfo4 = 0x1524;
	// ===========================================================
	public static final int S2C_TggFaPai = 0x1320;
	public static final int C2S_TggFaPaiComplete = 0x0321;

	public static final int C2S_BreakConnect = 0x0322;

	public static final int S2C_TggRound = 0x1323;
	public static final int S2C_TggStartBet = 0x1324;

	public static final int S2C_TggEnd = 0x1325;

	public static final int C2S_TggRank = 0x0326;
	public static final int S2C_TggRank = 0x1326;

	public static final int S2C_TggGameOver = 0x1327;

	public static final int C2S_SHRoomPlayBack = 0x0328;
	public static final int S2C_SHRoomPlayBack = 0x1328;

	public static final int S2C_Update_Score = 0x1329;
	public static final int S2C_TGG_ZHOUSHI = 0x1330;
	public static final int S2C_ChuPai = 0x1331;

	public static final int S2C_Room_State_Update = 0x1332;

	public static final int C2S_DayReward = 0x0333;
	public static final int S2C_DayReward = 0x1333;

	public static final int C2S_LeaveRoom = 0x0334;
	public static final int S2C_LeaveRoom = 0x1334;

	public static final int C2S_Exchange = 0x0335;
	public static final int S2C_Exchange = 0x1335;

	public static final int S2C_FindHuaPai = 0x1336;
   //版本号
	public static final int S2C_Upgrade_Info = 0x1613;

	// 无参数
	public static final int C2S_Type_Request = 0x0614;
	// 参数：type =1 是游客登录 =0: 是正常登录
	public static final int S2C_Type_Request = 0x1614;

	// type=1分享好友圈 type=2分享朋友圈
	public static final int C2S_Share_Reward = 0x0616;
	// type=1分享好友圈 type=2分享朋友圈 服务器返回
	public static final int S2C_Share_Reward = 0x1616;
	// 玩家反馈 phone:手机号 content:内容
	public static final int C2S_Feedback = 0x0617;
	// 收到此消息代表成功
	public static final int S2C_Feedback = 0x1617;

	// 客户端发送加倍 参数：bei 不加倍：0 加1倍：1 加2倍：2 加3倍：3
	public static final int C2S_JiaBei = 0x0618;
	// 服务器广播加倍信息 参数：userId bei:加的倍数
	public static final int S2C_JiaBei = 0x1618;
	// 收到此消息显示加倍按钮 参数：second 剩余秒数
	public static final int S2C_ShowJiaBei = 0x1619;

	// 炸金花比牌消息
	public static final int S2C_BiPai = 0x1620;
	// 炸金花技能消息 加注，跟住，弃牌，看牌等
	/**
	 * 参数1：EventType type 参数2：int value 加注(加注金额),比牌(对手位置)
	 */
	public static final int C2S_ZjhSkill = 0x0621;
	/**
	 * 广播技能消息 参数1：EventType type 参数2：String userId 发出人 参数3：int value
	 * 加注(加注金额),比牌(对手位置)
	 */
	public static final int S2C_ZjhSkill = 0x1621;
	/**
	 * 当前房间内玩家信息炸金花
	 */
	public static final int S2C_RoomZjhInfo = 0x1623;
	public static final int S2C_ZjhEnd = 0x1624;
	public static final int S2C_ZjhAllOver = 0x1625;
	/**
	 * 斗地主
	 */
	public static final int C2S_DdzQiangDizhu = 0x0701;
	public static final int S2C_DdzQiangDizhu = 0x1701;
	public static final int S2C_DdzDiPai = 0x1702;
	public static final int C2S_DdzHandOut = 0x0703;
	public static final int S2C_DdzHandOut = 0x1703;
	public static final int S2C_Ddz_GAME_END = 0x1704;
	public static final int S2C_DdzTable = 0x1705;
	public static final int S2C_Ddz_ALL_END = 0x1706;
	public static final int S2C_NoPeopleQiang = 0x1707;
		/**
	 * 当前房间内玩家信息跑得快
	 */
	public static final int C2S_PdkQiangDizhu = 0x0741;
	public static final int S2C_PdkQiangDizhu = 0x1741;
	public static final int S2C_PdkDiPai = 0x1742;
	public static final int C2S_PdkHandOut = 0x0743;
	public static final int S2C_PdkHandOut = 0x1743;
	public static final int S2C_Pdk_GAME_END = 0x1744;
	public static final int S2C_PdkTable = 0x1745;
	public static final int S2C_Pdk_ALL_END = 0x1746;
//	public static final int S2C_NoPeopleQiang = 0x1747;
	/**
	 * 牛牛
	 */
	public static final int S2C_Nn_QiangZhuang = 0x1710;
	public static final int S2C_Nn_ShowZhuang = 0x1711;
	public static final int S2C_RoomNnInfo = 0x1712;
	public static final int S2C_Nn_StartBet = 0x1713;
	public static final int C2S_Niu_Bet = 0x0714;
	public static final int S2C_Niu_Bet = 0x1714;
	public static final int S2C_StartShow = 0x1715;
	public static final int C2S_ShowNiu = 0x0716;
	public static final int S2C_ShowNiu = 0x1716;
	public static final int S2C_NN_GAME_END = 0x1717;
	public static final int S2C_NN_ALL_END = 0x1718;
	// ======================================

	// 报名比赛
	public static final int C2S_Join_Match = 0x0901;
	public static final int S2C_Join_Match = 0x1901;

	// 进入比赛房间
	public static final int C2S_Match_Start = 0x0902;
	public static final int S2C_Match_Start = 0x1902;
	// 获取比赛列表
	public static final int C2S_Match_List = 0x0904;
	public static final int S2C_Match_List = 0x1904;
	public static final int S2C_Match_RoundEnd = 0x1906;
	public static final int S2C_Match_Result = 0x1907;
	// 总的比赛结束消息
	public static final int S2C_Match_Win = 0x1909;
	public static final int C2S_Match_Leave = 0x0912;
	public static final int S2C_Match_Leave = 0x1912;
	// 比赛开始进入房间
	public static final int S2C_Match_EnterRoom = 0x1913;

	// 一轮结束后，等待其他房间结束期间，发送是否放弃消息
	public static final int C2S_Match_GiveUp = 0x0914;
	// 参数: boolean isSuc 是否成功
	public static final int S2C_Match_GiveUp = 0x1914;
	// 比赛信息 参数 rank userSize curLun
	public static final int S2C_Match_Info = 0x1915;
	// 加入俱乐部
	public static final int C2S_Father_Id = 0x0102;
	// 加入俱乐部返回信息
	public static final int S2C_Father_Id = 0x1112;
	
	//gps
	public static final int C2S_GPS = 0x0501;
	public static final int S2C_GPS = 0x1501;
  

}
